<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="update">
        <input type="hidden" name="id" th:value="${employee.id}" />
        姓名：<input type="text" name="name" th:value="${employee.name}" /><br/>
        部门：<select name="did">
            <option>---请选择---</option>
            <option value="1" th:selected="${employee.did == 1}">经理部</option>
            <option value="2" th:selected="${employee.did == 2}">测试部</option>
            <option value="3" th:selected="${employee.did == 3}">开发部</option>
        </select><br/>
            城市：<select name="cid">
            <option>---请选择---</option>
            <option value="1" th:selected="${employee.cid == 1}">北京</option>
            <option value="2" th:selected="${employee.cid == 2}">上海</option>
            <option value="3" th:selected="${employee.cid == 3}">广东</option>
        </select><br/>
        <button type="submit">修改</button>
    </form>
</body>
</html>